package myjava.io;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 * @author Yancy
 * @program springioctest
 * @create 2020-11-20
 */
public class CharInput {
  public static void main(String[] args) {
    //
    String s;
    InputStreamReader ir = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(ir);
    try {
      while ((s = br.readLine()) != null) {
        System.out.println("read:" + s);
      }
    } catch (Exception e) {
      System.out.println(e.getMessage());
    }
  }
}
